
package dieci.hibernate;

import dieci.system.ProductStock;



/**
 *
 * @author DuckSys
 */
public class HibProductStock {

    private long productId;
    private int availableAmount;
    private int onReturnAmount;
    private int totalAmount;

    public HibProductStock()
    {
    }

    public HibProductStock(ProductStock prodStock)
    {
        this.productId = prodStock.getProduct().getProductId();
        this.availableAmount = prodStock.getAvailableAmount();
        this.onReturnAmount = prodStock.getOnReturnAmount();
        this.totalAmount = prodStock.getTotalAmount();
    }

    
    
    /**
     * Get the value of totalAmount
     *
     * @return the value of totalAmount
     */
    public int getTotalAmount()
    {
        return totalAmount;
    }

    /**
     * Set the value of totalAmount
     *
     * @param totalAmount new value of totalAmount
     */
    public void setTotalAmount(int totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    
    /**
     * Get the value of onReturnAmount
     *
     * @return the value of onReturnAmount
     */
    public int getOnReturnAmount()
    {
        return onReturnAmount;
    }

    /**
     * Set the value of onReturnAmount
     *
     * @param onReturnAmount new value of onReturnAmount
     */
    public void setOnReturnAmount(int onReturnAmount)
    {
        this.onReturnAmount = onReturnAmount;
    }

    /**
     * Get the value of availableAmount
     *
     * @return the value of availableAmount
     */
    public int getAvailableAmount()
    {
        return availableAmount;
    }

    /**
     * Set the value of availableAmount
     *
     * @param availableAmount new value of availableAmount
     */
    public void setAvailableAmount(int availableAmount)
    {
        this.availableAmount = availableAmount;
    }

    
    /**
     * Get the value of productId
     *
     * @return the value of productId
     */
    public long getProductId()
    {
        return productId;
    }

    /**
     * Set the value of productId
     *
     * @param productId new value of productId
     */
    public void setProductId(long productId)
    {
        this.productId = productId;
    }

}
